package com.jyuxuan.recruitment.mapper;

import com.jyuxuan.recruitment.pojo.EnterpriseLogin;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;
import org.apache.ibatis.annotations.Update;

@Mapper
public interface EnterpriseLoginMapper {

    @Insert("Insert into enterpriseLogin(number,password) values(#{number},#{password})")
    public int save(EnterpriseLogin enterpriseLogin);

    @Update("Update enterpriseLogin set password=#{password},identify=#{identify} where number=#{number}")
    public int update(EnterpriseLogin enterpriseLogin);

    @Select("Select * from enterpriseLogin where number=#{number}")
    public EnterpriseLogin findByNumber(String number);

}
